package com.tony.pmp.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tony.pmp.model.entity.SysMenuEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: SysMenuService
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/21/20:23
 * @Description: 菜单
 */
public interface SysMenuService extends IService<SysMenuEntity> {

    /**
    * @Description: queryAll 获取菜单列表
    * @Param: []
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/21 20:51
    */
    List<SysMenuEntity> queryAll();

    /**
    * @Description: queryNotButtonList 获取菜单树形层级列表数据
    * @Param: []
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/22 13:47
    */
    List<SysMenuEntity> queryNotButtonList();

    /**
    * @Description: queryByParentId 根据父级菜单id查询其下的子菜单列表
    * @Param: [menuId]
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/23 23:07
    */
    List<SysMenuEntity> queryByParentId(Long menuId);

    /**
    * @Description: delete 根据id删除菜单数据
    * @Param: [menuId]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/23 23:14
    */
    boolean delete(Long menuId);

    /**
    * @Description: getUserMenuList 根据userId获取导航栏菜单
    * @Param: [userId]
    * @return: java.util.List<com.tony.pmp.model.entity.SysMenuEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/8/1 13:21
    */
    List<SysMenuEntity> getUserMenuList(Long userId);
}
